package com.woniu.gym.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.core.util.PageInfo;
import com.woniu.gym.dto.CoachJobApplicationDto;
import com.woniu.gym.dto.GymApplicationCoachDto;
import com.woniu.gym.form.SearchCoachApplicationForm;
import com.woniu.gym.form.SearchGymApplicationForm;
import com.woniu.gym.model.TApply;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
public interface TApplyService extends IService<TApply> {


    PageInfo<CoachJobApplicationDto> findApplication(SearchCoachApplicationForm form);

    PageInfo<GymApplicationCoachDto> gymApplication(SearchGymApplicationForm form);

    CoachJobApplicationDto coachJobApplication(Integer recruitId,Integer coachId);

    GymApplicationCoachDto gymRecruitApplication(Integer recruitId, Integer coachId);

    TApply cancelApplication(Integer applyId, int coachId);

    TApply gymCancelApplication(Integer applyId);

    TApply auditInformation(Integer applyId, Integer state);
}
